<?php 
namespace app\admin\controller;


use app\common\controller\Base64;
use think\Config;

class Shop extends Base
{
	public function upImage()
	{
		$data = $this->request->post('');
		$base64 = new Base64();
		$res = $base64 ->up_base64($data['img'], Config::get('path.fit'));
		return jsonSuccess('http://'.$_SERVER['HTTP_HOST'].'/'.$res);
	}
	
}